﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Web;
using System.Web.Mvc;

namespace Wicresoft.SMS.Web.Controllers
{
    public class ManageController : Controller
    {
        //
        // GET: /Manage/

        public ActionResult Index()
        {
            return View();
        }

        public ViewResult Group(string category)
        {
            if (string.Equals(category, "edit", StringComparison.OrdinalIgnoreCase))
                return GroupEdit();
            return GroupCreate();
        }

        public ViewResult Users(string category)
        {
            if (string.Equals(category,"group",StringComparison.OrdinalIgnoreCase))
                return GroupUsers();
            else if (string.Equals(category,"company",StringComparison.OrdinalIgnoreCase))
                return CompanyUsers();
            return UserCreate();
        }


        private ViewResult GroupCreate()
        {
            return View("GroupCreate");
        }

        private ViewResult GroupEdit()
        {
            return View("GroupEdit");
        }

        private ViewResult UserCreate()
        {
            return View("UserCreate");
        }

        private ViewResult GroupUsers()
        {
            return View("GroupUsers");
        }

        private ViewResult CompanyUsers()
        {
            return View("CompanyUsers");
        }

    }
}
